#!/bin/bash
set -e

SCRIPT_PATH=$(dirname $(realpath $0))
REPO_PATH=$(dirname $SCRIPT_PATH)

cd $REPO_PATH
echo "[codecheck] running python codestyle checking"
python3 -m pycodestyle ./commandsniffer \
    --max-line-length=120

echo "[codecheck] running python type checking"
python3 -m mypy ./commandsniffer

echo "All done, now you can commit the code happily ;)"